package com.hutool.text.console;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.lang.Console;
import org.junit.Test;

import java.util.Date;
import java.util.TimeZone;

public class DateTimeTest {
    @Test
    public void testDate(){
        DateTime dateTime = new DateTime();
        System.out.println("dateTime = " + dateTime);//dateTime = 2021-09-16 21:26:24
        DateTime dateTime1 = new DateTime(new Date());
        System.out.println("dateTime1 = " + dateTime1);//dateTime1 = 2021-09-16 21:27:05
        boolean weekend = dateTime1.isWeekend();
        System.out.println("weekend = " + weekend);


    }
    @Test
    public void test1(){
        DateTime now = DateTime.now();
        System.out.println("now = " + now);

        //new DateTime(TimeZone.)

    }
}
